import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ProfessionListComponent } from './profession-list/profession-list.component';
import { ProfessionAddComponent } from './profession-add/profession-add.component';

const routes: Routes = [
  { path: '', component: ProfessionListComponent },
  { path: 'add', component: ProfessionAddComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ProfessionRoutingModule { }
